'use strict';

angular.module('app').controller('postCtrl', ['$http','$state','$scope', function($http,$state,$scope){
	$scope.tabList=[{
		id:'all',
		name:'全部'
	},{
		id:'pass',
		name:'面试邀请'
	},{
		id:'fail',
		name:'不合适'
	}];
	$http.get('/data/myPost.json').then(function(resp){
		$scope.positionLista=resp;
		console.log(resp);
	});
	$scope.filterObj={};
	$scope.tClick=function(){
		switch (id){
			case 'all':
				delete $scope.filterObj.state;
				break;
			case 'pass':
				$scope.filterObj.state='1';
				break;
			case 'fail':
				$scope.filterObj.state='-1';
				break;
			default:
		}
	}
}])